import React, { Component } from 'react'

export default class XiaoJieJieItem extends Component {
  constructor(props) {
    super(props)
    console.log(props)
    this.content = props.content
    this.handleClick = this.handleClick.bind(this)
  }

  handleClick() {
    this.props.deleteItem(this.props.index)
  }

  render() {
    return (
    <li onClick={this.handleClick}>{this.content}</li>
    )
  }
}
